{include file="public/header"/}
<body class="gray-bg">
<div class="middle-box text-center animated">
    {if condition="$code == 1"}
    <h1 class="text-success"><i class="fa fa-smile-o"></i></h1>
    <h2 class="font-bold"><?php echo(strip_tags($msg));?></h2>
    {else /}
    <h1 class="text-danger"><i class="fa fa-frown-o"></i></h1>
    <h2 class="font-bold"><?php echo(strip_tags($msg));?></h2>
    {/if}
    <div class="error-desc">
        页面自动 <a id="href" href="{$url ?? ''}">跳转</a> 等待时间： <b id="wait">{$wait ?? ''}</b>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript">
    (function () {
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function () {
            var time = --wait.innerHTML;
            if (time <= 0) {
                location.href = href;
                clearInterval(interval);
            }
        }, 1000);
    })();
</script>
</body>
</html>
